package Class;

import java.util.Date;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import org.jdesktop.swingx.JXDatePicker;

public abstract class Attendance_Management {
	//check if emp in attendance
	public static String findAttendance(JTable tableAttendance,String loginName,String loginNameFind,int function,JXDatePicker datePicker,int absence){
		return Procedure.findAttendance(tableAttendance,loginName,loginNameFind,function,datePicker,absence);
	}
	
	//update info in Attendance table
	public static void updateAttendance(JTable tableAttendance,JLabel date) {
		Procedure.updateAttendance(tableAttendance,date);
	}
	 
	//set Attendance table when have a new day
	public static void setAttendance() {
		Procedure.setAttendance();
	}
	
	public static void getAttendance(JTable tableAttendance,String loginName,Date date) {
		Procedure.getAttendance(tableAttendance, loginName, date);
	}
	
	//when add a new employee in database, it adds new employ in attendance table
	public static void addEmpInAttendance(String loginName) {
		Procedure.addEmpInAttendance(loginName);
	}
	
	// call this method when click show all button in Attendance table
	public static void getAllAttendance(JTable tableAttendance,String loginName) {
		Procedure.getAllAttendance(tableAttendance, loginName);
	}
}
